package fun.qu_an.minecraft.mini_games_helper.client.config;


import fun.qu_an.minecraft.mini_games_helper.config.MiniGamesHelperConfig;
import fun.qu_an.minecraft.mini_games_helper.network.MGHConfigS2CPacket;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.PacketByteBuf;

@Environment(EnvType.CLIENT)
public class MiniGamesHelperClientConfig {
	private volatile static MiniGamesHelperConfig instance = new MiniGamesHelperConfig();

	public static MiniGamesHelperConfig get() {
		return instance;
	}

	public static void receive(MGHConfigS2CPacket packet) {
		instance = packet.config();
	}

	public static void reset() {
		instance = new MiniGamesHelperConfig();
	}
}
